package model.ships;

import param.ControlParam;
import param.GameParam;
import graphic.animation.Animations;
import model.Coordinate;
import model.entity.AnimatedEntity2D;

/**
 * Entita' della nave che l'utente puo' controllare.
 * @author Jan
 *
 */
public class Ship2D extends AnimatedEntity2D {
	
	private int availableAmmo = GameParam.SHIP_INITIAL_AMMO;
	
	public Ship2D(int entityID, Coordinate coordinate) {
		super(entityID, coordinate, ControlParam.SHIP_SHIFT_AMOUNT);
		setAnimation( Animations.USER_SHIP_FLY);
		setAutoUpdate(true);
		setUpdateDelay(50);
	}


	@Override
	public boolean perform() {
		System.out.println("Comportamento ship da definire");
		return false;
	}
	
	
	@Override
	public boolean haveChild() {
		return false;
	}
	
	public int getAvailableAmmo() {
		return availableAmmo;
	}

}
